package cn.edu.scau.cmi.hexiaoqing.abstractFactory.factory;


import cn.edu.scau.cmi.hexiaoqing.abstractFactory.Interface.PICC;
import cn.edu.scau.cmi.hexiaoqing.abstractFactory.Interface.PingAn;

public abstract class InsuranceFactory {
	public static InsuranceFactory getInsuranceFactory(String type) {
		if ("BodyInjur".equals(type)) {
			return new BodyInjurFactory();
		} else if ("CarInjur".equals(type)) {
			return new CarInjurFactory();
		} else if ("Casualties".equals(type)) {
			return new CasualtiesFactory();
		} else {
			return new MultipleAccidentsFactory();
		}
	}
	public abstract PICC getPICC();

	public abstract PingAn getPingAn();
}